import java.util.HashSet;
import java.util.Scanner;

/**
 * 字符串匹配
 * 判断短字符串S中的所有字符是否在长字符串T中全部出现。
 */
public class HJ81 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        HashSet<Character> set = new HashSet<>();
        while (scanner.hasNext()){
            String shortWord = scanner.nextLine();
            String longWord = scanner.nextLine();

            for (int i = 0; i < longWord.length(); i++) {
                char c = longWord.charAt(i);
                set.add(c);
            }
            for (int i = 0; i < shortWord.length(); i++) {
                char ch = shortWord.charAt(i);
                if(!set.contains(ch)){
                    System.out.println(false);
                    return;
                }
            }
            System.out.println(true);
        }
    }
}
